package StudyCode.summary.Basic.mymath;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CalculatorRint {
	public static void main(String[] args) {
		System.out.println("最接近 1.1 并等于整数的数值是:" + Math.rint(1.1));
		System.out.println("最接近 1.9 并等于整数的数值是:" + Math.rint(1.9));
		System.out.println("最接近 2.5 并等于整数的数值是:" + Math.rint(2.5));
	}
}
